home *** CD-ROM | disk | FTP | other *** search
- To the one known as Rune,
- > On 23-Jun-97, Keith Hill wrote:
- > >Yeah, good point. Now, if I'm stripping out every unnecessary bit of code
- > >to help the slower machines, how can I get it running sensibly on faster
- > >machines without slowing it down too much ??
- > To solve the problem you could check the speed of the machine in the beginning
- > of the game and according to this value change the speed of the monsters.
- > On the other hand; this would still not make the game run the same speed on
- > all computers. I guess the best would be if you could make the main game loop
- > (where is the monsters, the hero?) run exactly 50fps on any computer and then
- > make the slow operations (drawing onto the screen, I presume) run in less than
- > this according to the speed of the computer. Get it?
-
- Hmmm. This will screw up the timings with the way its written. I'm
- currently expecting it to run at 25fps or 16 when firing, on my machine, but
- I'll be able to test it on a faster machine when I eventually get paid.
-
- > Has anybody else solved this problem in a better way?
-
- I can see myself writing two main control routines.. One for any machine
- that can do >25fps. LET ME KNOW if your machine can manage 50fps, and the
- setup you're using, and I'll patch it into the fast routine. I suppose I
- could just slow it down...
-
- _ _ _ _ _ _ | "Given that God is infinate,
- |_> |_| |_| |\ | |_ | | | / | | and the universe is infinate,
- |_> | \ | | | \| |_ |_ |_| \_ . | would you like a toasted tea cake ?"
- |
- --------------+---------------
- http://www.mirex.demon.co.uk
-
-